package com.shixj.easy.spider.constant;

import com.google.common.collect.ImmutableMap;

import java.util.Map;

/**
 * Created by shixj on 2018/1/15.
 */
public class IllegalContants {
    public static Map<String, String> ILLEGAL_WORDS_MAP =
            new ImmutableMap.Builder<String, String>()

                    .put("'", "[001]")
                    .put("\n", "[002]")
                    //   .put("<br> ","[003]")
                    .build();

    public static String replaceIllegalWords(String sourceStr) {
      /*  for (String word:ILLEGAL_WORDS_MAP.keySet()){
            sourceStr= sourceStr.replace(word,ILLEGAL_WORDS_MAP.get(word));
        }*/
        return sourceStr;
    }
}
